Edit Task: SetPossibility ResourceRange
Description
The SetPossibility ResourceRange attribute under EditTask defines the range constraint for a single task possibility.
Parameters
Parameter | Description |
---|---|
PossibilityName | A string of text with a comma delimited list of resources in the possibility. Order is not required and the resource names should not be in quotes. |
ResourceName | A string of text of the resource that is being defined within the command. |
MinRangeApplies | A Boolean value that determines if there is a minimum range constraint. |
MinRangeValue | A double value that defines the minimum range constraint value. |
MaxRangeApplies | A Boolean value that determines if there is a maximum range constraint. |
MaxRangeValue | A double value that defines the maximum range constraint value. |
Examples
Allow any minimum capacity, and set a maximum of 15 capacity units for ResA in the possibility containing ResA and ResB
PATCH api/task/TaskA
Body:
{
"SetResourceDetails" : {
"PossibilityName" : "ResA,ResB",
"ResourceName" : "ResA",
"ResourceRange" : {
"FixedAmount" : "23",
"RateAmount" : "0.5",
"MinRangeApplies" : "FALSE",
"MinRangeValue" : "-1",
"MaxRangeApplies" : "TRUE",
"MaxRangeValue" : "15" }
}
}